<?php

namespace Modules\Admin\Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;

class AdminDatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
      //  Model::unguard();
        DB::table('admins')->insert([
           'username' => Str::random(5),
            'nickname' => Str::random(6),
            'email' =>  Str::random(10).'@admin.com',
            'password'  =>  Hash::make('123456'),
            'created_at' =>date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),

        ]);
        // $this->call("OthersTableSeeder");
    }
}
